package com.qf.pck.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qf.pck.entity.PackageOrder;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zhu
 * @since 2023-10-27
 */
public interface PackageOrderMapper extends BaseMapper<PackageOrder> {

    @Select("select * from package_order\n" +
            "where tenant_id=#{tenantId} \n" +
            "and pay_status =1 and package_id=#{packageId}")
    public List<PackageOrder> selectOrder(String tenantId,String packageId);
}
